package com.integral.biz.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.integral.biz.IBannerImgBiz;
import com.integral.entity.BannerImg;
import com.integral.service.BannerImgService;
import com.integral.vo.BannerImgVo;


@Service("bannerImgBiz")
public class BannerImgBiz implements IBannerImgBiz {

	@Resource
	private BannerImgService bannerImgService;
	
	/**
	 * 查询小程序首页轮播图
	 */
	@Override
	public List<BannerImgVo> findBannerImg(BannerImgVo bannerImgVo) {
		return bannerImgService.findBannerImg(bannerImgVo);
	}
	/**
	 * 上传首页轮播图
	 * @param bannerImg
	 */
	public void addBannerImg(BannerImg bannerImg){
		bannerImgService.addBannerImg(bannerImg);
	}
	/**
	 * 修改轮播图
	 * @param bannerImgVo
	 * @return
	 */
	public int updateBannerImg(BannerImgVo bannerImgVo){
		return bannerImgService.updateBannerImg(bannerImgVo);
	}
	/**
	 * 删除轮播图
	 * @param bannerImgVo
	 * @return
	 */
	public int delBannerImg(BannerImgVo bannerImgVo){
		return bannerImgService.delBannerImg(bannerImgVo);
	}
}
